package com.hl.toolkit.server.tycoin.account.slaveentity;
// Generated 2017-5-20 22:33:23 by Hibernate Tools 4.0.0.Final

import com.tycoin.common.entity.AbstractEntity;
import com.tycoin.user.slaveentity.TycoinUser;

import javax.persistence.*;

@Entity
@Table(name="tycoin_account_log")
 public class TycoinAccountLog extends AbstractEntity implements java.io.Serializable {
 
	/**
	 * 
	 */
	private static final long serialVersionUID = -4297374224847238648L;

 
	
	@Column(name = "user_id")
	private String userId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "user_id", insertable = false, updatable = false)
	private TycoinUser tycoinUser;// 所属剧头，针对剧头
	


	@Column(name = "type")
	private String type;
	
	@Column(name = "type_name")
	private String typeName;
	
	@Column(name = "from_id")
	private String fromId;
	
	@Column(name = "num")
	private Float num;
	
	@Column(name = "real_num")
	private Float realNum;
	
	

	@Column(name = "status")
	private int status;
	
	@Column(name = "remark")
	private String remark;
	
	@Column(name = "transfer_memo")
	private String transferMemo;
	
	@Column(name = "addtime")
	private Long addtime;

	@Column(name = "tran_no")
	private String tranNo;
	@Column(name = "logno")
	private String logno;


	public TycoinAccountLog() {
	}

	public TycoinAccountLog(String type, String typeName, Float num, Float realNum, Long addtime) {
		this.type = type;
		this.typeName = typeName;
		this.num = num;
		this.realNum = realNum;
		this.addtime = addtime;
	}

	public TycoinAccountLog(String userId, String type, String typeName, String fromId, Float num,
			Float realNum, Byte status, String remark, Long addtime) {
		this.userId = userId;
		this.type = type;
		this.typeName = typeName;
		this.fromId = fromId;
		this.num = num;
		this.realNum = realNum;
		this.status = status;
		this.remark = remark;
		this.addtime = addtime;
	}

	public String getTranNo() {
		return tranNo;
	}

	public void setTranNo(String tranNo) {
		this.tranNo = tranNo;
	}
 

 

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getFromId() {
		return this.fromId;
	}

	public void setFromId(String fromId) {
		this.fromId = fromId;
	}

	public Float getNum() {
		return this.num;
	}

	public void setNum(Float num) {
		this.num = num;
	}

	public Float getRealNum() {
		return this.realNum;
	}

	public void setRealNum(Float realNum) {
		this.realNum = realNum;
	}

	public String getTransferMemo() {
		return transferMemo;
	}

	public void setTransferMemo(String transferMemo) {
		this.transferMemo = transferMemo;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getAddtime() {
		return this.addtime;
	}

	public void setAddtime(Long addtime) {
		this.addtime = addtime;
	}
	

	public String getLogno() {
		return logno;
	}

	public void setLogno(String logno) {
		this.logno = logno;
	}
	
	public TycoinUser gettycoinUser() {
		return tycoinUser;
	}

	public void settycoinUser(TycoinUser tycoinUser) {
		this.tycoinUser = tycoinUser;
	}
	
}
